/*
 * #%L
 * java model
 * %%
 * Copyright (C) 2009 - 2011 prefabware.com Stefan Isele
 * %%
 * All Rights Reserved.
 * This program is dual-licensed under the GNU General Public license
 * or a commercial license.
 * You may select to use one or the other of these licenses.
 * To obtain a commercial license please contact Stefan Isele at www.stefan-isele.de
 * Any modifications to this file must keep this entire header intact.
 * Redistribution, except as permitted by the selected license, is prohibited.
 * #L%
 */
package com.prefabware.jmodel;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

public class JModel {
	private List<JClass> classes;
	private List<JInterface> interfaces;

	public JModel() {
		super();
		this.interfaces = new ArrayList<JInterface>();
		this.classes = new ArrayList<JClass>();
	}

	public boolean add(JClass arg0) {
		return classes.add(arg0);
	}

	public boolean add(JInterface arg0) {
		return interfaces.add(arg0);
	}

	public List<JClass> getClasses() {
		return Collections.unmodifiableList(classes);
	}

	public List<JInterface> getInterfaces() {
		return Collections.unmodifiableList(interfaces);
	}
}
